package com.shunli.cterminal.strategy;


import com.shunli.cterminal.model.dto.TrafficPolicyStrategyDTO;
import com.shunli.cterminal.model.res.SystemTrafficPolicyVO;

import java.util.Set;

/**
 * <p>
 * 策略
 * </p>
 *
 * @author daodao
 * @since 2025-04-25 15:16
 */
public interface Strategy {

    /**
     * 获取条件类型  ConditionTypeEnum
     *
     * @return
     */
    String getConditionTypeEnum();

    /**
     * 执行策略 结果
     *
     * @param beforeResult 上一个规则过滤后的结果
     * @return String
     */
    Set<SystemTrafficPolicyVO> parse(Set<SystemTrafficPolicyVO> beforeResult, TrafficPolicyStrategyDTO trafficPolicyStrategyDTO);
}
